<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>所有用户</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">

</head>

<body>

<div class="container-fluid">
    <div class="row">
        <main role="main" class="col-md-9 col-lg-10 pt-3 px-4">
            <div class="layui-container">
<!--                <div class="seach-input">-->
<!--                    <form class="seach-form layui-form" method="post" action="findHouseByLike">-->
<!--&lt;!&ndash;                        <div class="layui-pull-left input">&ndash;&gt;-->
<!--&lt;!&ndash;                            <input type="text" placeholder="请输入用户名" name="keywords" class="seach layui-input"  lay-verify="">&ndash;&gt;-->
<!--&lt;!&ndash;                        </div>&ndash;&gt;-->
<!--                        <div class="layui-pull-left button">-->
<!--                            <button class="btn seach-btn" lay-submit><i class="layui-icon layui-icon-search" style="font-size: 24px;"></i></button>-->
<!--                        </div>-->
<!--                    </form>-->
<!--                </div>-->
            </div>
            <div class="table-responsive">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>用户名</th>
                        <th>用户账号</th>
                        <th>用户密码</th>
                        <th>签名</th>
                        <th>生日</th>
                        <th>电话号码</th>
                        <th>性别</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                        <th>状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="list:${lists}">
                        <td><a th:href="@{/rent/user/myself/{userId}(userId=${list.getUserId()})}">[[${list.getUsername()}]]</a></td>
                        <td th:text="${list.getAccount()}"></td>
                        <td th:text="${list.getPassword()}"></td>
                        <td th:text="${list.getSign()}"></td>
                        <td th:text="${#dates.format(list.getBirth(),'yyyy-MM-dd')}"></td>
                        <td th:text="${list.getTel()}"></td>
                        <td th:text="${list.getSex()==1?'男':'女'}"></td>
                        <td th:text="${#dates.format(list.getCreateTime(),'yyyy-MM-dd')}"></td>
                        <td th:text="${#dates.format(list.getUpdateTime(),'yyyy-MM-dd')}"></td>
                        <td th:text="${list.getDeleted()}"></td>
                        <td>
                            <a class="btn btn-sm btn-primary" th:href="@{toUpdate/{id}(id=${list.getUserId()})}">编辑</a>
                            <a class="btn btn-sm btn-primary" th:href="@{delete/{id}(id=${list.getUserId()})}">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="/static/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="/static/js/popper.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="/static/js/feather.min.js"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" src="/static/js/Chart.min.js"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>

</body>

</html>
